package com.zhou.system.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zhou.common.lib.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 岗位信息表
 * </p>
 *
 * @author zxf
 * @since 2023-05-18
 */
@Getter
@Setter
@TableName("sys_post")
@ApiModel(value = "SysPost对象", description = "岗位信息表")
public class SysPost extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "岗位ID", position = 1)
    @JsonProperty(index = 1)
    @TableId(value = "post_id", type = IdType.AUTO)
    private Long postId;

    @ApiModelProperty(value = "岗位编码", position = 2)
    @JsonProperty(index = 2)
    private String postCode;

    @ApiModelProperty(value = "岗位名称", position = 3)
    @JsonProperty(index = 3)
    private String postName;

    @ApiModelProperty(value = "显示顺序", position = 4)
    @JsonProperty(index = 4)
    private Integer postSort;

    @ApiModelProperty(value = "状态（0正常;1停用）", position = 5)
    @JsonProperty(index = 5)
    private Integer status;

}
